<template>
  <div id="app">
    <!-- <el-button type="primary" @click="test">测试</el-button> -->
    <!-- <el-button type="primary" @click="testProxy">测试跨域代理</el-button> -->
    <router-view />
  </div>
</template>
<script>
export default {
  methods: {
    test() {
      console.log('测试', this.$ajax)
    },
    testProxy() {
      this.$ajax
        .post('/api/user/login', {
          account: 'admin',
          password: 'approve123456.',
        })
        .then((res) => {
          console.log('res:', res)
        })
        .catch((err) => {
          console.log('err:', err)
        })
    },
  },
}
</script>

<style lang="scss">
#app {
  width: 100%;
  height: 100%;
}
</style>
